<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColTypeGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {


        Schema::table('goods', function (Blueprint $table) {
            $table->string('type')->nullable()->comment('common:常规商品;integral:积分商品;bargain:砍价商品;group:拼团商品')->after('sort');
            $table->integer('exchange_integral')->default(0)->comment('兑换积分')->after('type');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
